package com.worklogger.structures;

import java.io.Serializable;
import java.util.*;

/**
 * WorkloggerProject.java
 * @author Kelly
 *
 * Implements a project for the app.
 */
public class WorkloggerProject implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 2426394067278671874L;
	private String title;
	private String description;
	private Set<WorkloggerAddition> additions = new HashSet<WorkloggerAddition>();
	private Set<WorkloggerModification> modifications = new HashSet<WorkloggerModification>();
	private Set<WorkloggerDeletion> deletions = new HashSet<WorkloggerDeletion>();
	
	public WorkloggerProject(String title, String description){
		this.title = title;
		this.description = description;
	}
	
	public String getTitle(){return title;}
	public void setTitle(String newTitle){title = newTitle;}
	public String getDescription(){return description;}
	public void setDescription(String newDescription){description = newDescription;}
	
	public boolean addAddition(WorkloggerAddition addition){
		return additions.add(addition);
	}
	
	public boolean addModification(WorkloggerModification modification){
		return modifications.add(modification);
	}
	
	public boolean addDeletion(WorkloggerDeletion deletion){
		return deletions.add(deletion);
	}
}
